package org.streets.eis.component.grid;

import org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
import org.apache.wicket.markup.html.navigation.paging.IPageable;
import org.apache.wicket.markup.html.navigation.paging.IPagingLabelProvider;
import org.apache.wicket.markup.html.navigation.paging.PagingNavigation;

/*
 * see #com.inmethod.grid.toolbar.paging.PagingNavigator
 */
public class DefaultPagingNavigator extends AjaxPagingNavigator {

	private static final long serialVersionUID = 1L;

	public DefaultPagingNavigator(String id, IPageable pageable, IPagingLabelProvider labelProvider) {
		super(id, pageable, labelProvider);
	}


	public DefaultPagingNavigator(String id, IPageable pageable) {
		super(id, pageable);
	}

	@Override
	protected PagingNavigation newNavigation(IPageable pageable, IPagingLabelProvider labelProvider) {
		PagingNavigation navigation = super.newNavigation(pageable, labelProvider);		
		navigation.setViewSize(8);
		return navigation;
	}
}

